package com.dianning.web.action.ticket;

import java.util.List;
import org.apache.commons.logging.*;

import com.dianning.service.ParameterService;
import com.dianning.web.action.BaseAction;

public class Index extends BaseAction{

	private static final Log logger = LogFactory.getLog(Index.class);
	
	private ParameterService parameterService;
	
	public ParameterService getParameterService() {
		return parameterService;
	}

	public void setParameterService(ParameterService parameterService) {
		this.parameterService = parameterService;
	}
	
	private List ticketJipiao;
	private List ticketKa;
	private List ticketPiao;
	private List ticketYoulechang;

	public List getTicketJipiao() {
		return ticketJipiao;
	}

	public void setTicketJipiao(List ticketJipiao) {
		this.ticketJipiao = ticketJipiao;
	}

	public List getTicketKa() {
		return ticketKa;
	}

	public void setTicketKa(List ticketKa) {
		this.ticketKa = ticketKa;
	}

	public List getTicketPiao() {
		return ticketPiao;
	}

	public void setTicketPiao(List ticketPiao) {
		this.ticketPiao = ticketPiao;
	}

	public List getTicketYoulechang() {
		return ticketYoulechang;
	}

	public void setTicketYoulechang(List ticketYoulechang) {
		this.ticketYoulechang = ticketYoulechang;
	}

	public String execute() {
		this.setTicketJipiao(this.getParameterService().findParameters("ticketJipiaoType", 2, null,"orders", 0));
		this.setTicketKa(this.getParameterService().findParameters("ticketKaType", 2, null,"orders", 0));
		this.setTicketPiao(this.getParameterService().findParameters("ticketPiaoType", 2, null,"orders", 0));
		this.setTicketYoulechang(this.getParameterService().findParameters("ticketYoulechangType", 2, null,"orders", 0));
		return SUCCESS;
	}
}
